import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

// 引入公共scss
import './styles/index.scss'
// 引入阿里云字体图标 iconfont
import './assets/icons/iconfont.css'

// menu icons
import * as ELIcons from '@element-plus/icons-vue'

// 导入 svgIcon
import installIcons from '@/icons/svg/index'

// 配置i18n
import i18n from '@/i18n/index'

const app = createApp(App)
installIcons(app)
Object.keys(ELIcons).forEach((key) => {
  app.component(key, ELIcons[key])
})
app.use(store).use(router).use(i18n).mount('#app')
